import request from '@/utils/request'

// 查询系统配置列表
export function listDyConfig(query) {
  return request({
    url: '/system/dyConfig/list',
    method: 'get',
    params: query
  })
}

// 查询系统配置详细
export function getDyConfig(id) {
  return request({
    url: '/system/dyConfig/' + id,
    method: 'get'
  })
}

// 新增系统配置
export function addDyConfig(data) {
  return request({
    url: '/system/dyConfig',
    method: 'post',
    data: data
  })
}

// 修改系统配置
export function updateDyConfig(data) {
  return request({
    url: '/system/dyConfig',
    method: 'put',
    data: data
  })
}

// 删除系统配置
export function delDyConfig(id) {
  return request({
    url: '/system/dyConfig/' + id,
    method: 'delete'
  })
}
export function checkCard(params) {
  return request({
    url: '/order/checkCard',
    params,
    method: 'get'
  })
}
